CXX = g++
CFLAGS = -g -O2 -Wall -Wno-deprecated

ML_REACTOR=../../ml_reactor
ML_REACTOR_H =$(ML_REACTOR)/include
ML_REACTOR_LIB=$(ML_REACTOR)/lib  -llreactor

all:
		$(CXX) $(CFLAGS) -o oj_server oj_serve.cc -I$(ML_REACTOR_H) -I ../../api/cpp/ml_api ../../api/cpp/lib/libmlclient.a -lprotobuf -lctemplate -ljsoncpp -lmysqlclient

.PHONY: clean

clean:
	rm -f oj_server